package com.swingson.exceptions;

import javax.swing.JComponent;

/**
 * @author sad
 */
public class ErrorMessageException extends RuntimeException {

    private String componentId;
    private JComponent component;

    public ErrorMessageException(String message) {
        super(message);
    }

    public ErrorMessageException(String message, String componentId) {
        super(message);
        this.componentId = componentId;
    }

    public ErrorMessageException(String message, JComponent component) {
        super(message);
        this.component = component;
    }

    public JComponent getComponent() {
        return component;
    }

    public String getComponentId() {
        return componentId;
    }
}
